<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>Sector.setLabelLayout</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="Sector.htm">Sector</a>.<wbr>setLabelLayout</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setLabelLayout(int layoutMethod [, int pos ])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the layout method and location of the sector label.<br><br>
To set the sector label layout method and location for all sectors, use <a href="PieChart.setLabelLayout.htm">PieChart.setLabelLayout</a>.<br><br>
ChartDirector supports two sector label layout methods - circular layout and side layout. For detail descriptions, please refer to <a href="PieChart.setLabelLayout.htm">PieChart.setLabelLayout</a>.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>layoutMethod</td><td>(Mandatory)</td><td>Specify the layout method. Must be one of the predefined constants <a href="Chart.CircleLayout.htm">CircleLayout</a> or <a href="Chart.SideLayout.htm">SideLayout</a>.</td></tr><tr><td>pos</td><td>-1</td><td>For circular layout, it is the distance between the sector perimeter and the sector label. A negative value (but not -1) means the sector label will be drawn in the interior of the sector.<br><br>
For side layout, it is the distance between the pie perimeter and the left or right edges of the invisible containing rectangle (equal to the width of the rectangle minus the pie diameter and then divided by 2).<br><br>
In either case, -1 means the distance is automatically determined.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
